<include file="Public/min-header" />
<div class="wrapper">
	<include file="Public/breadcrumb"/>
	<section class="content">
       <div class="row">
       		<div class="col-xs-12">
	       		<div class="box">
	             <div class="box-header">
	               	<nav class="navbar navbar-default">
				        <div class="collapse navbar-collapse">
				          <form class="navbar-form form-inline" action="{:U('Live/live_list')}/fenbu_id/{$fenbu_id}" method="get">
				            <div class="form-group">
				              	<input type="text" name="keywords" class="form-control" value="{:I('keywords')}" placeholder="请输入直播名称">
				            </div>
				            <button type="submit" class="btn btn-primary">查询</button>
				          </form>
				      	</div>
	    			</nav>
	             </div>
	             <div class="box-body">
	           	 <div class="row">
	            	<div class="col-sm-12">
		              <table id="list-table" class="table table-bordered table-striped dataTable">
		                 <thead>
		                   <tr role="row">
							   <th>直播id</th>
							   <th>标题</th>
<!--							   <th>图片</th>-->
			                   <th>状态</th>
			                   <th>开始时间</th>
<!--			                   <th>房间密码</th>-->
			                   <th>是否显示</th>
		                   </tr>
		                 </thead>
						<tbody>
                          <foreach name="list" item="vo" key="k" >
                             <tr role="row">    
							 <td>{$vo.roomid}</td>
		                     <td>{$vo.name}</td>
							 <td>{$live_status[$vo[live_status]]}</td>
							 <td>{$vo.start_time|date="Y-m-d H:i",###}</td>
		             <!--        <td>
							 <input type="text" onchange="sellerUpdateSort('live','id','{$vo.id}','password',this)" value="{$vo.password}" class="input-sm" style="width: 300px;text-align: center;">
							</td>-->
							 
		                     <td>
                                 <img width="20" height="20" src="__PUBLIC__/images/<if condition='$vo[dataflag] eq 1'>yes.png<else />cancel.png</if>"  onclick="changeTableVal('live','id','{$vo.id}','dataflag',this)"/>
		                     </td>
		                   </tr>
		                  </foreach>
		                   </tbody>
		                 <tfoot>
		                 
		                 </tfoot>
		               </table>
	               </div>
	          </div>
              <div class="row">
              	    <div class="col-sm-6 text-left">
              	    	<button class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></button>
              	    </div>
                    <div class="col-sm-6 text-right">{$page}</div>		
              </div>
	          </div>
	        </div>
       	</div>
       </div>
   </section>
<script>

</script>
</div>
</body>
</html>   
